package com.java.permission.common.enums;

/**
 * @author hu
 * @version 1.0
 * @date 2020/6/12 14:26
 * @description 是否枚举
 */
public enum YesOrNoEnums {
    NO((byte) 0, "否"),

    YES((byte) 1, "是"),
    ;

    private Byte code;
    private String msg;

    YesOrNoEnums(Byte code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    YesOrNoEnums() {
    }

    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
